#!/bin/bash

# 获取 gunicorn 主进程 PID
PID=$(cat gunicorn.pid)

# 停止进程
if [ -n "$PID" ]; then
    kill -9 $PID
    rm gunicorn.pid
    echo "Server stopped"
else
    echo "Server not running"
fi 